<script type="text/javascript" >
      jQuery('#color').colorPicker();
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#stFacebookToolboxForm', function(data){
        stFacebookToolbox.loadPage('flag_set_up', '', '<?php _e("Successful", $config['plugin_name']) ?>');
    });
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
                <ul class="menu_right">
                      <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('general_settings');" id="general_settings">Email Settings</a>
                    </li>
                      <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('user_access');" id="user">User access</a>
                    </li>
                      <li  class="current">
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('flag_set_up');" id="flag_set_up"> Flag set-up</a>
                    </li>
                   <li>
                            <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('license_set_up');" id="License-set-up"> License set-up</a>
                    </li>
                </ul>

                    <h2 class="red_color" style="padding-left:15px;">Edit flag</h2>
          <form class="stform" id="stFacebookToolboxForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>&id=<?php echo $result->flagtypeid;?>" method="post" >
            <ul>
                <li>
                    <label><?php _e('Flag name', $config['plugin_name']); ?>:</label>
                    <div class="">
                        <input value="<?php echo $result->flagname; ?>" class="required" name="data[flagname]" id="flagname" type="text" />
                    </div>
                    <br clear="both" />
                </li>

                <li>
                    <label style="width:183px;"><?php _e('Color code', $config['plugin_name']); ?>:</label>
                    <div>
                        <input  name="data[flagcolorcode]" id="color" type="text" value="<?php echo $result->flagcolorcode;?>"  />
                    </div>
                    <br clear="both" />
                </li>
                                <li>
                    <label><?php _e('Flag description', $config['plugin_name']); ?>:</label>
                       <div>
                        	<textarea title="flagdescription"
                                      class="" name="data[flagdescription]" cols="5" rows="5"
                                      id="flagdescription" tabindex="13" ><?php echo $result->flagdescription; ?></textarea>
						</div>
                    <br clear="both" />
                </li>
                <li>
                    <input type="submit" value="Save" />
                </li>


            </ul>

        </form>


    </div>
</div>
